const add = (...args) => args.reduce((acc, item) => acc + item, 0);

console.log(add(1, 2, 3));
